﻿@using Windvoice.Blog
@using Windvoice.Authorize
@model Windvoice.Blog.Comment

@{
    ViewBag.Title = "Comment Reply";
    Layout = "~/Areas/Manage/Views/Shared/_Layout.cshtml";
}


<div class="pagetitle">
    <h2>回复评论</h2>
    <div class="pagefunctions">
        @Html.ActionLink("返回列表", "index")
    </div>    
</div>

@using (Html.BeginForm("reply", "comment", FormMethod.Post, new { @class = "dataform" }))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.ID)
    <fieldset>
        <legend>评论内容</legend>

        <div class="editor-label">
            博客：
        </div>
        <div class="editor-field">
            @(Article.Find(Model.ArticleID).Title)
        </div>
        
        <div class="editor-label">
            用户：
        </div>
        <div class="editor-field">
            @(Windvoice.Authorize.User.Find(Model.UserID).DisplayName)
        </div>
                
        <div class="editor-label">
            回复：
        </div>
        <div class="editor-field">
            <textarea style="width:30em;height:6em" name="reply">@(String.IsNullOrEmpty(Model.Reply) ? String.Empty : Model.Reply)</textarea>
        </div>

        <p>
            <input class="submitbutton" type="submit" value="提交" />
        </p>
    </fieldset>
}